<template>
  <div class="home">
    <monitor></monitor>
    <middleView></middleView>
    <footView></footView>
  </div>
</template>

<script lang="ts">
import monitor from './monitor/index.vue'
import middleView from './middleView/index.vue'
import footView from './footView/index.vue'
export default {
  name: 'Home',
  components: {
    monitor,
    middleView,
    footView
  }
}
</script>
<script lang="ts" setup>
import { onMounted } from 'vue'
import { useReportDataStore } from '@/stores/reportData'
const reportDataStore = useReportDataStore()
// 页面挂载完毕就发送请求 获取数据
onMounted(() => {
  reportDataStore.getReportData()
})
</script>

<style scoped>
  .home {
    width: 100%;
    height: 100%;
    padding: 20px;
  }
</style>
